#ifndef __AHT10_20_H
#define __AHT10_20_H

#ifdef __cplusplus
extern "C" {
#endif


#include "CONFIG.h"

#define  AHT10_20_RdAddr 0x71
#define  AHT10_20_WrAddr 0x70

#define  AHT10_20_InitCmd 0xE1
#define  AHT10_20_InitDat1 0x08
#define  AHT10_20_InitDat2 0x00

#define  AHT10_20_MeasureCmd 0xAC
#define  AHT10_20_MeasureDat1 0x33
#define  AHT10_20_MeasureDat2 0x00

#define  AHT10_20_RESETCmd 0xBA

extern void InitAHT10_20(void);
extern void Reset_AHT10_20(void);
extern void Measure_AHT10_20(void);
extern void Read_AHT10_20(uint8_t *buff,uint8_t len);
//extern void Get_AHT10_20_Data(uint8_t phase,uint8_t *buff,uint8_t len);

enum {
    AHT_RESET_PHASE = 0,
    AHT_INIT_PHASE,
    AHT_MEASURE_PHASE,
    AHT_READ_PHASE
};

#ifdef __cplusplus
}
#endif


#endif

